package com.ddm.controller;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ddm.service.ICustomerService;
import com.ddm.service.IPaymentService;
import com.dto.AjaxResult;
import com.entity.Customer;
import com.entity.Payment;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.math.BigDecimal;
import java.util.List;

/**
 * Created by he on 2025/3/24 20:56
 */
@RestController
@RequestMapping("/admin/payment")
public class PaymentController {
    @Autowired
    public IPaymentService paymentService;

    // 新增消费者
    @PostMapping
    public AjaxResult savePayment(@RequestBody Payment payment) {
        paymentService.save(payment);
        return AjaxResult.success("新增消费者成功");
    }
}